import proFetch from "../../../../../../public/functions/project-fetch";

export default function getInnerTransData() {
    const {orgVal, form, table} = this.props;
    const param_str = table.getCheckedRows('info').map(item => item.data.values.pk_psnjob.value).join();
    if (!param_str) return;

    let postData = {
        param_str,
        pk_org: orgVal.refpk
    };

    return proFetch({
        url: '/nccloud/hrtrn/dimissionrds/DimissionRdsTransInitAction.do',
        body: postData,
    })
        .then((res) => {
            if (res.success) {
                form.setAllFormValue({'innertrans': res.data.innertrans});
            }
        });
}
